package com.aliang.shopping.mapper;

import com.aliang.shopping.model.dto.RelateDTO;
import com.aliang.shopping.model.dto.goods.GoodsEsDto;
import com.aliang.shopping.model.po.OrdersInfo;
import com.aliang.shopping.model.vo.cart.CartVO;
import com.aliang.shopping.model.vo.orders.OrdersVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author ShiBaLover
 * @description 针对表【orders_info(订单信息表)】的数据库操作Mapper
 * @createDate 2025-01-04 22:07:32
 * @Entity com.aliang.shopping.model.po.OrdersInfo
 */
public interface OrdersInfoMapper extends BaseMapper<OrdersInfo> {

    List<RelateDTO> getRelate(@Param("list") List<Long> userIds);

    List<OrdersVO> getOrdersByBusinessId(@Param("start") Integer start, @Param("end") Integer end, @Param("businessId") Long businessId,
                                         @Param("ordersId") Long ordersId, @Param("status") Integer status);

    List<GoodsEsDto> querySaleNumByGoodsId(@Param("list") List<Long> goodsIds, @Param("statusNums") List<Integer> statusNums);

    CartVO getPayNoByItemId(@Param("ordersItemId") Long ordersItemId);

}




